package com.ccf.business.etl.model;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.common.model.pojo.DelFlag;
import com.service.mybatis.pojo.FlagEntity;
import com.service.mybatis.pojo.SuperEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;

import javax.validation.constraints.NotNull;

/**
 * 流程表
 *
 * @author ccf
 * @date 2021-11-29 18:02:10
 */
@Getter
@Setter
@EqualsAndHashCode(callSuper = false)
@NoArgsConstructor
@AllArgsConstructor
@TableName("wj_flow")
@ApiModel(value="wj_flow对象", description="流程表")
public class Flow extends FlagEntity {
    private static final long serialVersionUID=1L;

    public Flow(String id) {
        super(id);
    }

    @NotNull(message = "流程名称不能为空")
    @ApiModelProperty(value = "流程名称")
    private String name;

    @ApiModelProperty(value = "内容，只记录连线和点")
    private String data;

    @ApiModelProperty(value = "工作id,调度用")
    private String jobId;

    @ApiModelProperty(value = "描述")
    private String remark;

    public static final Integer NO = 0;
    public static final Integer YES = 1;
    @ApiModelProperty(value = "状态")
    @TableField(exist = false)
    private Integer status;

}
